home *** CD-ROM | disk | FTP | other *** search
/ Megadoom II / MEGADOOM II - iso.7z / MEGADOOM II.ISO / doom / help / doomchek / tryme.bat < prev   
DOS Batch File  |  1994-09-13  |  5KB  |  158 lines

  1. @echo off
  2. cls
  3. echo  
  4. echo  
  5. echo  
  6. echo This batch program will use all of the features of DMCHECK to show you how
  7. echo it is used.
  8. echo  
  9. echo  
  10. echo  
  11. echo  
  12. echo              1- Start at the DOOM version test.
  13. echo  
  14. echo              2- Go to the Disk space test.
  15. echo  
  16. echo              X- Go directly to the end text.
  17. echo  
  18. echo            ESC- Quit straight to DOS!
  19. echo  
  20. echo  
  21. dmcheck /q ask 12X
  22. cls
  23. if errorlevel == 255 goto totalend
  24. if errorlevel == 3 goto end2
  25. if errorlevel == 2 goto end
  26. if errorlevel == 1 goto start
  27. echo Opps, I got a weird happening while doing the MENU function.
  28. goto mail
  29. :start
  30. dmcheck w /q
  31. echo  
  32. if not errorlevel 255 goto not255
  33. echo No DOOM version found!
  34. goto end
  35. :not255
  36. if not errorlevel 30 goto not30
  37. echo You have a modified copy of DOOM from the PC-ZONE CDROM! It is like ver 1.2
  38. echo but with a modified EXE file.
  39. goto end
  40. :not30
  41. if not errorlevel 20 goto not20
  42. echo DOOM II
  43. goto end
  44. :not20
  45. if not errorlevel 19 goto not19
  46. echo You have the PIRATED copy of DOOM ][!!! Please be kind and buy a copy at least!
  47. goto end
  48. :not19
  49. if not errorlevel 6 goto not6
  50. dmcheck /q v 1.666
  51. echo  
  52. if not errorlevel 1 goto ok6
  53. echo You have version 1.666 all right, but it's the sharewear version!
  54. goto end
  55. :ok6
  56. echo Since you have DOOM 1.666, then the PWAD should be executed with
  57. echo DOOM -FILE FOREST.WAD DEMO12.WAD, otherwise DOOM would tell you
  58. echo that the demos were not for ver 1.666 and would exit.
  59. goto end
  60. :not6
  61. if not errorlevel 5 goto not5
  62. echo DOOM 1.5 beta, this is only a sharewear version.
  63. goto end
  64. :not5
  65. if not errorlevel 4 goto not4
  66. echo DOOM 1.4 beta, only sharewear.
  67. goto end
  68. :not4
  69. if not errorlevel 3 goto not3
  70. echo Since you have DOOM 1.2, then we could run a PWAD made for it instead of
  71. echo displaying this.
  72. dmcheck /q v 1.2
  73. echo isplaying this.
  74. if not errorlevel 1 goto end
  75. echo but since you have the sharewear version, we still can't.
  76. goto end
  77. :not3
  78. if not errorlevel 2 goto not2
  79. echo Somebody that has DOOM 1.1 would get a message saying that the
  80. echo PWAD isn't usable with that version and he should upgrade to 1.2
  81. dmcheck /q v 1.1
  82. if not errorlevel 1 goto end
  83. echo Also, this is only the sharewear of 1.1, sorry can't do much!
  84. goto end
  85. :not2
  86. if not errorlevel 1 goto not1
  87. echo And for DOOM 0.9, you have to upgrade to 1.1, then 1.2 and today 1.666!
  88. dmcheck /q v 0.9
  89. if not errorlevel 1 goto end
  90. echo on top of that, this is the first sharewear release of DOOM!
  91. goto end
  92. :not1
  93. echo Oops got an errorlevel of 0 which shouldn't happen!
  94. :mail
  95. echo Please send e-mail to me (Jean-Serge Gagnon) at az589@freenet.carleton.ca
  96. echo and tell me about it. Thanks.
  97. goto totalend
  98. :end
  99. echo OK, now let's try the S[pace] function. We will test to see if there is
  100. echo more than 10,000,000 bytes free on a drive, but first, let's give the A[sk]
  101. echo function a try...
  102. dmcheck /q ask "Which drive to test [C-F]? " CDEF
  103. echo  
  104. if not errorlevel == 255 goto nota255
  105. echo You pressed [Escape], I guess we can forget about this test
  106. goto end2
  107. :nota255
  108. if not errorlevel == 4 goto nota4
  109. echo Testing drive F:...
  110. echo --------- DMCHECK displays this when used without /q parameter ----------
  111. dmcheck space f 10,000,000
  112. goto cont
  113. :nota4
  114. if not errorlevel == 3 goto nota3
  115. echo Testing drive E:...
  116. echo --------- DMCHECK displays this when used without /q parameter ----------
  117. dmcheck space e 10000000
  118. goto cont
  119. :nota3
  120. if not errorlevel == 2 goto nota2
  121. echo Testing drive D:...
  122. echo --------- DMCHECK displays this when used without /q parameter ----------
  123. dmcheck s d 10000000
  124. goto cont
  125. :nota2
  126. if not errorlevel == 1 goto nota1
  127. echo Testing drive C:...
  128. echo --------- DMCHECK displays this when used without /q parameter ----------
  129. dmcheck space c 10,000,000
  130. goto cont
  131. :nota1
  132. echo Opps, I got a weird happening while doing the Ask function.
  133. goto mail
  134. :cont
  135. echo  
  136. echo ----------------------- end of DMCHECK text -----------------------------
  137. if errorlevel == 1 goto nofree
  138. echo There is at least 10,000,000 bytes free on the requested drive.
  139. goto end2
  140. :nofree
  141. echo There is less than 10,000,000 bytes on the requested drive, sorry!
  142. pause
  143. :end2
  144. echo  
  145. echo There are many  things that can be done with DMCHECK if used properly. You
  146. echo could check for the existance of the Pirated copy of DOOM ][ and refuse to
  147. echo run your PWAD file, or at the very least give a message to  the user about
  148. echo that. You could also check that the version of DOOM that is installed as a
  149. echo registered copy and  display a message  explaining that  the user needs to
  150. echo have the registered copy of  DOOM to use your PWAD file, instead of having
  151. echo people send  you e-mail or phone you asking  things like that. People want
  152. echo easy  things to do,  and DMCHECK  makes it that much  simpler to  use PWAD
  153. echo files for  the end-user without having  to learn anything else than typing
  154. echo in a batch file name at the DOS prompt!
  155. echo  
  156. echo Jean-Serge Gagnon (az589@freenet.carleton.ca)
  157. :totalend
  158.